package House;

public class HouseList {
    private int id=1;
    private int houseNums=1;
    public House[]houses;
    public HouseList (int size){
        houses=new House[size];
        houses[0]=new House(1,"zc","110","北京",3000,"未出租");
    }

    public House[] getHouses() {
        return houses;
    }

    public void setHouses(House houses,int pos) {
       this.houses[pos]=houses;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id +=id;
    }
    public House[] list(){
        return houses;
    }

    public int getHouseNums() {
        return houseNums;
    }

    public void setHouseNums(int houseNums) {
        this.houseNums = houseNums;
    }
}
